@import '../../../css/colorVar.less';
@labelWidth: ((6/24)/24) * 7 * 100%;
@spanWidth: ((6/24)/24) * 100%;

.saveBtn {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(67, 118, 255, 10%);
}
.myStar {
  font-size: 14px !important;
  color: @rate_star!important;
  line-height: 3 !important;
}
.myRuleDesc {
  width: 100%;
  display: table;
  :global {
    .ant-legacy-form-item {
      display: table;
      width: 100%;
      > .ant-legacy-form-item-label {
        width: @labelWidth !important;
      }
      > .ant-legacy-form-item-control-wrapper {
        width: calc(100% - @labelWidth - @spanWidth*2) !important;
        position: absolute;
        top: 0;
        left: @labelWidth !important;
        max-width: unset;
      }
    }
  }
}
.tabsCls {
  margin-top: 10px;
  :global {
    .ant-tabs-bar {
      margin-bottom: 16px;
      border-color: rgba(67, 118, 255, 20%);
    }
    .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-nav-container {
      height: 40px;
    }

    .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {
      background: rgba(255, 255, 255, 10%);
      border-radius: 4px 4px 0 0;
      border: 1px solid rgba(67, 118, 255, 20%);
      border-bottom: 0;
      color: rgba(0, 0, 0, 65%);
      padding: 0 24px;
    }
    .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
      background: rgba(67, 118, 255, 10%);
      color: #4376ff;
    }
  }
}
.choosedRulesBox {
  width: 100%;
  height: 342px;
  overflow-y: auto;
  border-radius: 4px;
  border: 1px solid rgba(67, 118, 255, 20%);
  padding: 16px;
  ul {
    margin: 0;
    padding: 0;
  }
  .choosedData {
    height: 40px;
    background: rgba(67, 118, 255, 5%);
    line-height: 40px;
    color: rgba(0, 0, 0, 65%);
    padding: 0 16px;
    margin-bottom: 8px;
    span {
      display: block;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .choosedData:last-child {
    margin-bottom: 0;
  }
}
.selectC {
  :global {
    .ant-legacy-form-item {
      margin-bottom: 0;
      .ant-legacy-form-item-children .ant-select-search--inline {
        background: inherit;
      }
    }
  }
}
.addRule {
  :global {
    .ant-radio-inner::after,
    .ant-switch-checked {
      background: linear-gradient(216deg, #96bcff 0%, #4376ff 100%);
    }

    .ant-switch {
      width: 42px;
      min-width: inherit;
      height: 20px;
      line-height: 20px;
      background-color: rgba(67, 118, 255, 10%);
    }
    .ant-switch::after {
      width: 16px;
      height: 16px;
      border-radius: 16px;
    }
    .ant-switch-inner {
      margin-right: 6px;
      margin-left: 20px;
      color: rgba(0, 0, 0, 45%);
      font-size: 12px;
      line-height: 1;
    }
    .ant-switch-checked .ant-switch-inner {
      margin-right: 20px;
      margin-left: 6px;
      color: #fff;
    }
  }
}
.tradeDirection {
  height: calc(~'100vh - 600px');
  min-height: 200px;
  overflow-y: auto;
  ul,
  li {
    margin: 0;
    padding: 0;
  }
  li {
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid rgba(67, 118, 255, 10%);
    padding-left: 16px;
    color: rgba(0, 0, 0, 65%);
    > span:first-child {
      display: inline-block;
      width: 332px;
      border: 0;
    }
  }
  li:first-child {
    background: #f0f3f8;
    font-weight: 700;
    color: rgba(0, 0, 0, 65%);
    display: flex;
  }
}
.ruleStatus {
  display: flex;
  > div {
    flex-wrap: nowrap;
  }
  :global {
    .ant-legacy-form-item {
      display: flex;
      margin: 0;
      margin-left: 70px;
    }
  }
}
.formula {
  height: 342px;
  background: rgba(67, 118, 255, 5%);
  border-radius: 4px;
  padding: 20px 100px;
  :global {
    .ant-select-selection {
      height: 32px;
    }
  }
  > span {
    font-size: 14px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: rgba(0, 0, 0, 65%);
    line-height: 16px;
    display: block;
    margin-bottom: 16px;
  }
  > div {
    display: flex;
    align-items: stretch;
    height: 270px;
  }
  .leftItem {
    flex: 1;
    overflow: hidden;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(67, 118, 255, 20%);
    height: 100%;
    > div:nth-child(2) {
      padding: 0 20px;
    }
  }
  .centerItem {
    width: 100px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 4px;
    margin: 0 12px;
    border: 1px solid rgba(67, 118, 255, 20%);
    display: flex;
    justify-content: center;
    flex-flow: wrap;
    > div:last-child {
      width: 60px;
    }
  }
  .rightItem {
    width: 360px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(67, 118, 255, 20%);

    .oprate {
      padding: 0 32px;

      > div:first-child {
        margin-top: 18px;
        margin-bottom: 12px;
      }
      > div {
        display: flex;
        position: relative;
        > div {
          display: block;
          width: 46%;
          line-height: 40px;
          align-items: stretch;
        }

        > div:nth-child(2) {
          margin-left: 20px;
        }
      }
    }
    .controlVal {
      display: flex !important;
      :global {
        .ant-legacy-form-item-children .ant-input-number {
          align-items: center;
          height: 32px;
          // margin-top: 4px;
          display: block;
          border-right: 0;
          border-radius: 2px;
          border-top-right-radius: 0 !important;
          border-bottom-right-radius: 0 !important;
        }
      }
    }
    .controlVal1 {
      :global {
        .ant-legacy-form-item-children .ant-input-number {
          height: 32px;
        }
      }
    }
    .rightItemTitle {
      padding: 0 32px;
      line-height: 40px;
      background: rgba(67, 118, 255, 10%);
      > div {
        display: flex;
        position: relative;
        > span {
          display: block;
          width: 46%;
          line-height: 40px;
        }
        > span:nth-child(2) {
          padding-left: 20px;
        }
      }
    }
  }
}
.delBtn {
  position: absolute;
  right: -23px;
  top: 8px;
}
.addBtn {
  margin-left: 32px;
  margin-top: 8px;
}
.title {
  height: 40px;
  width: 100%;
  text-align: center;
  line-height: 40px;
  font-weight: 500;
  color: rgba(0, 0, 0, 65%);
  font-size: 14px;
  background: rgba(67, 118, 255, 10%);
}
.gongshi {
  height: calc(~'100% - 60px');
  padding: 0 20px;
  :global {
    .ant-legacy-form-item-control {
      margin-top: 0;
    }
  }
  > div {
    padding: 0 16px;
    border-right: 1px solid #4376ff;
    border-left: 1px solid #4376ff;
    height: calc(~'100% - 20px');
    margin: 20px 0;
    display: flex;
    align-items: center;
  }
  .shuzhi {
    width: 100px;
    flex-shrink: 0;
    margin-right: 16px;
    :global {
      margin: 0;
    }
  }
  .fuhao {
    width: 60px;
    flex-shrink: 0;
    margin: 0 16px;
  }
  .fenzi {
    flex: 1;
    overflow: hidden;
    .fenziWrapper {
      position: relative;
    }
    .fenziItem {
      margin-right: 20px;
      .noData {
        color: rgba(0, 0, 0, 45%);
        line-height: 16px;
        text-align: center;
        padding-bottom: 12px;
        font-size: 14px;
      }
      .fenzihasData {
        display: flex;
        flex-flow: wrap;
        height: 82px;
        overflow-y: auto;
        color: rgba(0, 0, 0, 65%);
        line-height: 16px;
        font-size: 14px;
        align-items: flex-end;
        padding-top: 12px;
        > div {
          display: flex;
          margin-bottom: 12px;
          min-width: 0;
          position: relative;
        }
        .indexName {
          color: rgba(0, 0, 0, 65%);
          line-height: 16px;
          font-size: 14px;
          overflow: hidden;
          flex: 1;
          text-overflow: ellipsis;
          white-space: nowrap;
          padding-right: 40px;
        }
      }
      .fuhaoItem {
        color: rgba(0, 0, 0, 65%);
        line-height: 16px;
        font-size: 18px;
        margin: 0 10px;
      }
      .fenzioprate {
        position: absolute;
        right: 0;
        top: -12px;
        white-space: nowrap;
        img:first-child {
          margin-right: 8px;
        }
      }
    }
    .fenziWrapper:first-child {
      border-bottom: 1px solid rgba(67, 118, 255, 20%);
    }
    .fenziWrapper:last-child {
      padding-top: 5px;
      .noData {
        margin-top: 9px;
      }
    }
    .fenziWrapper:last-child .fenziItem .fenzihasData {
      align-items: flex-start;
    }
    .fenziWrapper:last-child .addFenzi {
      top: 12px;
    }
  }
  .addFenzi {
    position: absolute;
    right: 0;
    bottom: 12px;
  }
}
